<template>
	<view>
		<image class="titleImage" src="../../static/QQ截图20240907144649.png"></image>
		<view class="message">
			<view class="name">{{detail.title}}</view>
			<view style="display: flex;">
				<view class="businessHours">营业时间：周一至周五 09:00-22:00</view>
				<uni-icons class="phone" type="phone-filled" size="30" color="#0084FF"></uni-icons>
			</view>
			<view style="display: flex;" @click="tiaozhuan">
				<view class="address">{{detail.address}}</view>
				<uni-icons class="navigation" type="paperplane-filled" color="#0084FF" size="35"></uni-icons>
			</view>
		</view>
		<view class="line1"></view>
		<view class="oilPriceDetail">油价详情</view>
		<view class="priceDetail">
			<view class="detail">
				<view class="oilStylePrice">92#</view>
				<view class="oilStylePrice">￥5.85/L</view>
			</view>
			<view class="detail">
				<view class="oilStylePrice">92#</view>
				<view class="oilStylePrice">￥5.85/L</view>
			</view>
			<view class="detail">
				<view class="oilStylePrice">92#</view>
				<view class="oilStylePrice">￥5.85/L</view>
			</view>
			<view class="detail">
				<view class="oilStylePrice">92#</view>
				<view class="oilStylePrice">￥5.85/L</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail: ''
			}
		},
		onLoad(option) {
			this.detail = JSON.parse(decodeURIComponent(option.data))
			console.log(this.detail);
		},
		methods: {
			tiaozhuan() {
				uni.navigateTo({
					url: "/pages/navigation/navigation"
				})
			}
		}
	}
</script>

<style>
	page {
		background-color: #FFFFFF;
	}

	.titleImage {
		width: 368px;
		height: 227px;
		margin-left: 3px;
		background-color: black;
	}

	.message {
		padding: 0 11px;
	}

	.name {
		margin-top: 10px;
		width: 155px;
		height: 23px;
		font-size: 16px;
		overflow: hidden;
		text-overflow: ellipsis;
		-webkit-line-clamp: 1;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.businessHours {
		margin-top: 10px;
		width: 228px;
		height: 20px;
		font-size: 14px;
	}

	.phone {
		margin-top: 5px;
		margin-left: 70px;
	}

	.address {
		margin-top: 15px;
		font-size: 14px;
	}

	.navigation {
		margin-top: 17px;
		margin-left: 20px;
	}

	.line1 {
		width: 357px;
		height: 1px;
		border: 1px solid rgba(239, 239, 239, 1);
		margin-top: 20px;
		margin-left: 7px;
	}

	.oilPriceDetail {
		width: 56px;
		height: 20px;
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		margin-left: 11px;
		margin-top: 5px;
	}

	.priceDetail {
		margin-top: 10px;
	}

	.detail {
		width: 308px;
		display: flex;
		margin-left: 24px;

	}

	.oilStylePrice {
		width: 154px;
		height: 33px;
		text-align: center;
		line-height: 33px;
		border-bottom: 1px solid rgba(239, 239, 239, 1);
	}
</style>